package com.etxxy.member.service;

import java.util.List;

import com.etxxy.common.exception.DataException;
import com.etxxy.common.exception.ServiceException;
import com.etxxy.member.domain.MemberRole;

/**
 * @category 
 * @author yiz
 *
 */
public interface MemberRoleService {
	/**
	 * @category 根据id查找会员角色
	 * @param id
	 * @return
	 * @throws ServiceException
	 * @throws DataException
	 */
	public MemberRole findMemberRoleById(String id) throws ServiceException, DataException;
	
	/**
	 * @category 根据Id删除会员角色
	 * @param id
	 * @return
	 * @throws ServiceException
	 * @throws DataException
	 */
	public int deleteMemberRoleById(String id) throws ServiceException, DataException;
	
	/**
	 * @category 修改会员角色
	 * @param id
	 * @return
	 * @throws ServiceException
	 * @throws DataException
	 */
	public int updateMemberRoleById(MemberRole memberRole) throws ServiceException, DataException;
	
	/**
	 * @category 根据会员Id查找会员的角色值
	 * @param memberId
	 * @return
	 * @throws ServiceException
	 * @throws DataException
	 */
	public List<String> getRoleValuesByMemberId(String memberId) throws ServiceException, DataException;
	
	/**
	 * @category 根据会员Id查找
	 * @param memberId
	 * @return
	 * @throws ServiceException
	 * @throws DataException
	 */
	public List<MemberRole> getRolesByMemberId(String memberId) throws ServiceException, DataException;
	
}
